﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RelationExpertSystem.Relation
{
    public abstract class RelationBase : IRelation
    {
        public abstract bool IsRelated(Person a, Person b);

        public virtual void SetRelation(Person a, Person b)
        {
            a.AddRelation(this, b);
        }

        // do not want to specify no dependencies by default
        //public virtual IEnumerable<IRelation> GetDependencies()
        //{
        //    return new HashSet<IRelation>();
        //}

        public abstract IEnumerable<IRelation> GetDependencies();
    }
}
